export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchSize: 'mini',
  addBtn: true,
  editBtn: false,
  delBtn: false,
  height: 'auto',
  column: [{
    width: 150,
    label: '数据值',
    prop: 'value',
    rules: [{
      required: true,
      message: '请输入数据值',
      trigger: 'blur'
    }]
  }, {
    label: '标签名',
    prop: 'name',
    search:true,
    rules: [{
      required: true,
      message: '请输入标签名',
      trigger: 'blur'
    }]
  }, {
    label: '分类',
    prop: 'type',
    search:true,
    rules: [{
      max: 50,
      message: '长度须小于50个字符',
      trigger: 'blur'
    }]
  }, {
    label: '排序',
    prop: 'sort',
    type: 'number',
    rules: [{
      required: true,
      message: '请输入排序',
      trigger: 'blur'
    }]
  }, {
    label: '是否有效',
    prop: 'isActive',
    type: 'switch',
    slot: true,
    valueDefault : true
  }]
}
